import numpy as np

array = np.random.randint(low=1, high=1000, size=10)

print(array)


def selection_sort(a: list) -> object:
    i = 0
    while i < len(a):
        k = i
        j = i + 1
        while j < len(a):
            if a[j] < a[k]:
                k = j
            j += 1
        a[i], a[k] = a[k], a[i]
        i += 1
    return a


selection_sort(array)

print(array)
